import useUserStore from "@/stores/modules/user";
import cache from "@/utils/cache";
import {CacheEnum} from "@/enums/cacheEnum";

export function clearAll() {
    const userStore = useUserStore()
    userStore.reset()
    cache.remove(CacheEnum.TOKEN_KEY)
}